
public class Foo implements java.lang.Cloneable
{
    int j;
    
    public Foo()
    {
        j = 0;
    }
    
    public Foo(int i)
    {
        j = i;
    }
    
    protected Object clone() throws CloneNotSupportedException
    {
        Foo o = (Foo) super.clone();
        o.j = j;
        return o;
    }
    
    public String toString()
    {
        return "FOO" + j;
    }
    
}
